#include "../source/server.hpp"

int main()
{
    Socket s;
    s.CreateClient(8888, "127.0.0.1");

    //DBG_LOG("fot debug");
    for(int i=0;i<5;i++)
    {
        std::string msg = "今天天气不错";
        s.Send(msg.c_str(), msg.size());
        //DBG_LOG("client send success");
        char buf[1024]={0};
        s.Recv(buf, sizeof(buf));
        DBG_LOG("%s", buf);
        sleep(1);
    }

    while(1) sleep(1);

    return 0;
}